#pragma once
#include "SDL.h"
#include "SDL_image.h"
#include "tile.h"
#include "map.h"

class renderer {

	public:
		renderer();
		~renderer();
		SDL_Renderer* getRawRenderer(){ return _renderer; }
		SDL_Window* getWindow(){ return _window; }
		void render(map m);
		void clear(){SDL_RenderClear(_renderer);}
		void addTileToRender(tile a);
		void load_content();

	private:
		SDL_Renderer * _renderer;
		SDL_Window * _window;
		std::vector<SDL_Texture *> _textures;


};
